package com.drinking.springcloudprovider2.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ServiceController {

    @RequestMapping("/")
    public String Hello(){
        return "这是服务提供者服务器2的主页。";
    }

    @RequestMapping("/test")
    public String test(){
        return "来自于服务提供者2的测试数据";
    }

}
